<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
	<meta name="format-detection" content="telephone=no,address=no,email=no"/>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<title>KAA电商管理后台_发货地址管理</title>
	<script type="text/javascript" src="${path}/js/jquery-2.1.1.min.js"></script>
	<script src="${path}/js/sidebar-menu.js"></script>
	<link href="${path}/css/login.css" rel="stylesheet" media="all">
</head>
<script>
    function selectPaymentStatus(value){
        $("#paymentStatus").val(value)
		document.getElementById("form2").submit();
    }
</script>
<body class="main" id="pageCotent">
	<h1>KAA电商管理后台</h1>
	<jsp:include page="sidebarNav.jsp"></jsp:include><!-- main_sidebar -->

	<div class="main_con_wrap">
		<form name="form1" method="post"
			  action="${path}/orderAddressList" id="form1">
			<div class="main_con_top1 cancelorderlist_top1">
				<%--<p class="outline_in"><a>订单添加</a></p>--%>
				<%--<p class="del_all"><label for="del_all"></label><input name="del_all" type="checkbox" onclick="chk('all',this)"/><span>全选</span></p>
				<p class="outline_in"><input type="button" onclick="del('chk')" value="批量删除" /></p>
				<p class="recycle_bin"><a></a></p>--%>
				<div class="search_wrap">
					<form id="order_search" name="order_search" action=" " method="get">  
						<div class="search_fl">
							<input type="text" placeholder="输入搜索内容" name="orderCode" class="search_txt" value="${orderCode}">
						</div>
						<input type="submit" value="" name="order_search_btn" class="search_btn">
					</form>
				</div>
				<div class="clear"></div>
			</div><!-- main_con_top1 -->
		<div class="main_con order_list">
			<div class="main_con_top2 addressorderlist_top2">
			<%--	<p>
					<select id="addressorderlist_type">
					  <option selected="" value="选择订单类型">选择订单类型</option>
					  <option value="普通订单">普通订单</option>
					  <option value="DIY订单">DIY订单</option>
					  <option value="体验店订单">体验店订单</option>
					</select>
				</p>--%>

				<p>
					<select id="orderlist_paystatus" onchange="selectPaymentStatus(this.value);">
						<option selected="" value="3"${paymentStatus == 3? 'selected':""}>选择付款状态</option>
						<option value="1"${paymentStatus == 1 ? 'selected':""}>已付款</option>
						<option value="0"${paymentStatus == 0 ? 'selected':""}>未付款</option>
					</select>
				</p>
				
				<%--<p>
					<select id="addressorderlist_delistatus">
					  <option selected="" value="选择发货状态">选择发货状态</option>
					  <option value="已发货">已发货</option>
					  <option value="未发货">未发货</option>
					</select>
				</p>--%>

				<%--<div class="excelbut"><input class="excelin" id="excelbut2" type="button" value="" onclick="javascript:method('memberlist_table')" /></div>
				<div class="excelbut excelout_wrap"><input class="excelout" id="excelbut1" type="button" value="" onclick="javascript:method('memberlist_table')" /></div>
				<div class="clear"></div>--%>
			</div><!-- main_con_top2 -->
			<table id="addressorderlist_table" width="100%" border="0" align="center">
				<tr>
					<%--<th>选择<input type="checkbox" onclick="chk('all',this)" style="display:none;"/></th>--%>
					<th>订单号</th>
					<th>下单时间</th>
					<th>付款状态</th>
					<th>付款时间</th>
					<th>发货地址</th>
					<th></th>
				</tr>
				<c:forEach items="${orderAddressList}" var="items">
				<tr>
					<%--<td><input type="checkbox" name="check[]"></td>--%>
					<td><span>${items.orderCode}</span><input type="text" style="display:none;"></td>
					<td><span>${items.startDate} </span><input type="text" style="display:none;"></td>
					<td><span>${items.paymentStatus}</span><input type="text" style="display:none;"></td>
					<td><span>${items.paymentTime}</span><input type="text" style="display:none;"></td>
					<td><span>${items.detailed}</span><input type="text" style="display:none;"></td>
					<%--<td class="last_td two_input">
					<input class="edit_but" value="编辑" onclick="edit(this,'show')" type="button">
					<a class="see_but">查看</a>
					</td>--%>
				</tr>
				</c:forEach>
			</table>
			<div class="paging_wrap paging" onselectstart="return false" >
				<%--<td colspan="6" align="center" bgcolor="#5BA8DE">共${page.totalRecords}条
					记录 共${page.totalPages}页 当前第${page.pageNo}页<br>--%>
					<div class="otherBtns">
						<a class="onepage" value="首页"href="${path}/orderList?pageNo=${page.topPageNo }">首页</a>
						<c:choose>
							<c:when test="${page.pageNo!=1}">
								<a class="prevpage" value="上一页" name="previousPage" href="${path}/orderList?pageNo=${page.previousPageNo}"></a>
							</c:when>
							<c:otherwise>
								<a class="prevpage" value="上一页" name="previousPage"></a>
							</c:otherwise>
						</c:choose>
					</div>
					<div class="otherBtns">
						<c:choose>
							<c:when test="${page.pageNo != page.totalPages}">
								<a class="nextpage" value="下一页"  href="${path}/orderList?pageNo=${page.nextPageNo}"></a>
							</c:when>
							<c:otherwise>
								<a class="nextpage" value="下一页" ></a>
							</c:otherwise>
						</c:choose>
						<a value="尾页" href="${path}/orderList?pageNo=${page.bottomPageNo }">尾页</a>
					</div>
					<div class="jumpBtns" style="display:none;">
						<input class="jump_input" data="" type="text">
						<a class="jump_a" data="0">跳转</a>
					</div>
					<br><br>
					<td colspan="6" align="center" bgcolor="#5BA8DE">共${page.totalRecords}条
						记录 共${page.totalPages}页 当前第${page.pageNo}页<br>
			</div>
		</div><!-- main_con -->
		</form>
		<form name="form2" method="post"
			  action="${path}/orderAddressList" id="form2"
			  class="form2">
			<input name="paymentStatus" id="paymentStatus" type="hidden">
		</form>
	</div><!-- main_con_wrap -->

	<div class="footer_copyright">
		<p>苏州知行合一网络科技有限公司提供技术支持，版权所有</p>
	</div><!-- footer_copyright -->

<script>
	/////////////////////////侧边栏按钮
	$.sidebarMenu($('.sidebar-menu'))

    /////////////////////////创建全选反选函数
//EDIT TR

</script>
</body>
</html>